export default {
  methods: {
    queryGetList() {
      let xfields = [
        ...this.getXMeta('xfields')||[],
      ]
      let ret = []
      const max = 24
      let total = 24
      xfields.forEach(v=>{
        v.span = v.span||2
        if(total+v.span>max) {
          ret.push([])
          total = 0
        }
        ret[ret.length-1].push(v)
        total += v.span
      })
      return ret
    }
  }
}